import { isLicensePlate, VINCheck, emialCheck, idcardCheck } from '@/utils/rulesFunction';
export default {
  licensePlateNumber: [{ required: true, trigger: 'blur', validator: isLicensePlate }],//车牌号
  vin: [{ required: true, trigger: 'blur', validator: VINCheck }], //VIN码
  recordNumber: [{ required: true, trigger: 'blur', }, { maxlen: 30, message: '长度超长' }], //档案号
  carModels: [{
    required: true, trigger: 'change', validator: (rule, value, callback) => {
      let t = false;
      value.forEach(element => {
        if (element) {
          t = true
        } else {
          t = false
        }
      });
      console.log('车型value', value)
      if (t) {
        callback()
      } else {
        callback('请选择车型')
      }
    }
  }]
}
